package com.neihe.listenner.event;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.context.ApplicationEvent;

/**
 * 发送邮箱验证码事件
 */
@Getter
@Setter
@ToString
public class SendCode extends ApplicationEvent {

    /**
     * 邮箱
     */
    String email;

    /**
     * 邮箱验证码
     */
    String code;

    public SendCode(Object source, String email, String code) {
        super(source);
        this.email = email;
        this.code = code;
    }
}
